home *** CD-ROM | disk | FTP | other *** search
- here it is, Killer Dwarf..
- 1Piano Man #32 7░▒▓ 1World Dominator 7▓▒░
- Sat Apr 30 15:25:01 1994
- 0R: net33: @13028 (via @13000) [17:19 05/01/94]
- 0R: net33: @13034 [15:38 04/30/94]
- ┌──────────────────────────────────────────────────────────────────────────┐
- │ Mod Name » P-MAN01.MOD or RANDTAG.MOD Author » Piano Man #32 │▄
- │ WWiV Version » 4.23 (should work on 4.2x) SySop Utopia BBS │█
- │ Difficulty » █▒▒▒▒▒▒▒▒▒ 410-557-0868 │█
- │ Mod Version » 1.00ß 32@2 LiveNET 32@????? Renegade │█
- │ Date Written » 5/1/94 32@8 PlaNET 32@????? ChessNET │█
- │ │█
- │ Description » This will place random 1 line quotes at the end of your │█
- │ messages. This will also places a small ad for your board │█
- │ there too. All of this is centered, and saved with the │█
- │ message. │█
- └──────────────────────────────────────────────────────────────────────────┘█
- ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
-
- [*------------------------------Disclaimer---------------------------------*]
-
- Although this mod has been throughly tested on my heavily modded 4.23
- source, there is no guarantee made or implied that this will work. I am not
- responsible for any damage caused directly or indirectly by this mod.
- Feel free to distribute this, and use any of the ideas found in this mod
- it is Freeware. I just ask that you tell me if your going to re-release it
- with any changes. Although you may do this to my parts of the mod, there
- are some parts in here that are copyrighted by WWIV Software Services, and
- cannot be used by anybody without the consent of WWIV Software Services.
- Failure to follow this is punishable by law.
-
- [*--------------------------Extended Description---------------------------*]
-
- Whew! With THAT out of the way, here's what the mod does. First, it
- takes a string and centers it in the message, this is your BBS ad. Mine
- looks like this (Simple, Short, and Sweet) :
-
- 1Utopia BBS 7┼ 1410-557-0868
-
- Then it picks a random number 0-9 and prints the corrosponding string,
- centered, on the next line of the message, so the whole thing looks like
- this:
-
- 1Utopia BBS 7┼ 1410-557-0868
- 7Hey! I paid for that girl; and I want all the parts!
-
- This mod is written VERY inefficiently, but it works, and gets the job
- done. Now, on with the mod!
-
- [*-------------------------------Legend------------------------------------*]
- ┌────────────────┐
- │ Exhisting - == │
- │ Add Line - ++ │
- │ Mod Line - =* │
- └────────────────┘
- [*--------------------------------Mod--------------------------------------*]
-
- Step 1 : Back up your source!
-
- Step 2 : Open MSGBASE.C and look for void inmsg(messagerec....)
- At the top of the void, modify the lines as shown.
-
- /* == */ void inmsg(messagerec *m1, char *title, int *anony, ....)
- /* == */ {
- /* =* */ char s[181],s1[181],s2[181],s3[181],ro[81],fnx[81],chx,*ss,*ss1,
- /* =* */ fn1[81], fn2[81],*nd, random_quoter[81], tag[81], tag1[81],
- /* =* */ tag2[81], tag3[81];
- /* =* */ int maxli,curli,done,save,savel,i,i1,i2,i3,i4,i5,i6,setanon,oiia,
- /* =* */ random_quote, num_over;
- /* == */ messagerec m;
- /* == */ long ll,l1;
-
- Step 3 : Still in void inmsg(...), search down into the void for the
- Exhisting lines, and add where indicated.
-
- /* == */ for (i5=0; i5<curli; i5++)
- /* == */ addline(b,&(lin[i5*LEN]),&l1);
- /* == */ }
- /* ++ */
- /* ++ */ addline(b,"",&l1);
- /* ++ */
- /* ++ */ randomize();
- /* ++ */
- /* ++ */ sprintf(tag2, "1Utopia BBS 7┼ 1410-557-0868");
- /* ++ */ /* Chnage to whatever you want! */
- /* ++ */ num_over=(80-strlen(stripcolors(tag2)))/2;
- /* ++ */ sprintf(tag3, " ");
- /* ++ */ for(i6=0; i6<num_over; i6++)
- /* ++ */ strcat(tag3, " ");
- /* ++ */ strcat(tag3, tag2);
- /* ++ */ addline(b,tag3,&l1);
- /* ++ */
- /* ++ */ random_quote=random(10);
- /* ++ */
- /* ++ */ npr("7Writing Random BBS Tag Number G%d7......\r\n",random_quote+1);
- /* ++ */
- /* ++ */ if(random_quote==0) sprintf(tag, "7Has Doom EVER worked over the modem?");
- /* ++ */ if(random_quote==1) sprintf(tag, "7ShareWare this!");
- /* ++ */ if(random_quote==2) sprintf(tag, "6Are thy tenaciously clinging to thine buttox?");
- /* ++ */ if(random_quote==3) sprintf(tag, "7Dinnis Leary is my GOD!");
- /* ++ */ if(random_quote==4) sprintf(tag, "7Hey! I paid for that girl, and I want all the parts!");
- /* ++ */ if(random_quote==5) sprintf(tag, "7Don't hate me 'cause I'm beautiful");
- /* ++ */ if(random_quote==6) sprintf(tag, "7Never Wiz on the electric fence");
- /* ++ */ if(random_quote==7) sprintf(tag, "7Call us, becuase we DON'T have a Bevis & Butthead sub");
- /* ++ */ if(random_quote==8) sprintf(tag, "7This could be the beginning of a beautiful friendship");
- /* ++ */ if(random_quote==9) sprintf(tag, "7What money?");
- /* ++ */ /* Make those whatever you want too. See Note 1 below */
- /* ++ */ num_over=(80-strlen(stripcolors(tag)))/2;
- /* ++ */ sprintf(tag1, " ");
- /* ++ */ for(i6=0; i6<num_over; i6++)
- /* ++ */ strcat(tag1, " ");
- /* ++ */ strcat(tag1,tag);
- /* ++ */ addline(b,tag1,&l1);
- /* ++ */
- /* == */ #ifdef OPT_MSG_TAG_ABILITY
- ....
-
- Step 4 : Save and Re-Compile! Your done! 8)
-
- ■ Note 1 : You can change the random quotes to say whatever you want, but
- if you want to have more then 10 then you have to change the 10
- in the line that says "random_quote=random(10)" to whatever you
- want. Then add more lines at the bottom of the if statements,
- following the same pattern.
-
- [*------------------------------End of Mod---------------------------------*]
-
- Please, let me know if you have any problems! my addresses are at the
- top of the file. Thank you, and be on the lookout for more mods by me,
- Piano Man.
-
- Utopia BBS -*- 410-557-0868
- 14.4, RenegadeNET, PlaNET, ChessNET, and LiveNET
- Sysops: Ford Perfect/Piano Man
-
- 7[1MSG Reply Status7] : 1maybe i should write this up?
-
- 1Utopia BBS 7┼ 1410-557-0868
- 7What money?